


//-------Aliases-------//

private alias object.value0 : object.timer


// Tables
event ObjectMain

object.animation = 1

if inputdown[0].buttonC == 1
	object.animation = 2
end if

if inputdown[0].buttonA== 1
	object.animation = 3
end if

if inputdown[0].buttonY == 1
	object.animation = 4
end if

if inputdown[0].buttonB == 1
	object.animation = 5
end if
object.priority = PRIORITY_ACTIVE

end event


event ObjectDraw
object.drawOrder = 4

	temp0  = Object.Value6
	temp0 /= 9

	Object.Frame = temp0
	if Object.Value6 > 55
		Object.Value6 = 0
	end if
	DrawSpriteFX(temp0, FX_FLIP, object.xpos, object.ypos)

end event

event ObjectStartup
	LoadSpriteSheet("3D_Test/Funkin.gif")
	//idle stuff 0-6
	SpriteFrame(-0, -31, 35, 63, 1, 70) //0 idle 1			
	SpriteFrame(-0, -31, 35, 63, 1, 70) //0 idle 1		
	SpriteFrame(-0, -31, 35, 63, 1, 70) //0 idle 1		
	SpriteFrame(-0, -31, 35, 63, 1, 70) //0 idle 1					
	SpriteFrame(-0, -31, 35, 63, 1, 70) //0 idle 1		
	SpriteFrame(-0, -31, 35, 63, 1, 70) //0 idle 1		
	SpriteFrame(-0, -31, 35, 63, 1, 70) //0 idle 1		
	SpriteFrame(-0, -31, 35, 63, 1, 70) //0 idle 1						
end event
